<?php




// 处理引号，HTML标签引起的输入框显示错误，过滤字符型变量
$process_include    = array('rolename', 'description');
string_pre_process($record, $process_include);
$back_url   = strcode(getcookie('back_url'), 'DECODE');
if($back_url == '') $back_url   = $mod_url['li'];

$txt_form_title = $GLOBALS['_MODULES'][$mod]['actions'][$action]['name'];






require($abs_admin_cppath . '/header.php');
?>
<SCRIPT LANGUAGE="JavaScript" SRC="<?php echo $url_global['common']; ?>/js/Validator.js"></SCRIPT>


		<div class="datacontainer2" style="width:700px;">
<div class="header">
	<?php echo $txt_form_title; ?>
</div>
<table BORDER="0" cellpadding="0" cellspacing="0" width="100%" class="list_table">
<form action="<?php echo $mod_url['save']; ?>" method="post" name="item_data" onsubmit="return Validator.Validate(this,3)">
<TR>
	<TD width="120" align="right" class="caption">角色名称：</TD>
	<TD class="cell">
		<input type="text" name="role[rolename]" value="<?php echo $record['rolename']; ?>" class="text" 
		dataType="Require" msg="登录用户名必须填写且必须符合上述规则">
		<span class="mustfill">*</span>
	</TD>
</TR>
<TR>
	<TD class="cell" colspan="2">
<?php
echo modules_actions($record['id']);
?>
	</TD>
</TR>
<TR>
	<TD width="120" align="right" class="caption">描述信息：</TD>
	<TD class="cell"><textarea rows="5" cols="10" 
		name="role[description]" class="area" style="width:90%"
		dataType="Limit" max="512" msg="描述信息长度不能超过512个字符"><?php echo $record['description']; ?></textarea>
	</TD>
</TR>
<TR>
	<TD class="submit" colspan="2">
		<input type="submit" value=" 保存 " class="btn">
		<input type="reset" value=" 重置 " class="btn">
		<input type="button" value=" 返回 " class="btn" onclick="location.href='<?php echo $back_url; ?>'">
		<input type="hidden" name="back_url" value="<?php echo $back_url; ?>">
		<input type="hidden" name="role[id]" value="<?php echo $record['id']; ?>">
		<input type="hidden" name="save" value="<?php echo $save_flag; ?>">
	</TD>
</TR>
</form>
</TABLE>

		</div>


<?php
require($abs_admin_cppath . '/footer.php');
?>